package com.liruo.learn.spring.mvc.controller.m1model;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:liruo
 * @Date:2023-10-06-18:26:03
 * @Desc
 */
@RestController
@RequestMapping("/model")
public class ModelTest {
  @GetMapping("/ma")
  public String model(@ModelAttribute("ma2") String ma2, Model model){
    return "ma2= " + ma2 +" , model=" + model;
  }
}
